/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import _entity.RoleInfo;
import entity.Roles;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author HP
 */

public interface RolesBeanRemote {

    List<RoleInfo> findAll();

    List<RoleInfo> findRange(int[] range);

    int count();

    RoleInfo find(Object id);

    void edit(RoleInfo role);

    void create(RoleInfo role);

    void remove(RoleInfo role);

    boolean isUserInRole(String userName, String roleName);

    Roles find_2(Object id);
}
